FROM centos:7
ADD https://mirrors.aliyun.com/repo/Centos-7.repo /etc/yum.repos.d/CentOS-Base.repo
RUN yum install -y gcc openssl-devel pcre-devel zlib-devel make
ADD nginx-1.18.0.tar.gz /
COPY bulid.sh /build.sh
RUN chmod +x /build.sh && /build.sh
MAINTAINER horgen="horgen_lzc@163.com"
ENTRYPOINT /usr/local/nginx/sbin/nginx -g 'daemon off;'

EXPOSE 80/tcp

